﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RRSimulator.BlobManager.Lib.Model
{
    public class ModelBase : IDisposable
    {
        private bool _isDisposed = false;

        ~ModelBase()
        {
            Dispose(false);
        }

        public void Dispose()
        {
            Dispose(true);
            GC.SuppressFinalize(this);
        }

        protected virtual void Dispose(bool isDisposing)
        {
            if (_isDisposed)
                return;

            _isDisposed = true;
        }
    }
}
